#ifndef SESSION_H
#define SESSION_H

#include <QObject>

class Session : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString username READ username WRITE setUsername NOTIFY usernameChanged)
    Q_PROPERTY(QString name READ name NOTIFY nameChanged)
public:
    Session();
    QString username() const;
    void setUsername(const QString &newusername);
    QString name() const;
    void setName(const QString &newname);

signals:
    void usernameChanged(QString username);
    void nameChanged();

private:
    QString m_username;
    QString m_name;
};

#endif // SESSION_H
